package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.UserLable;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2020-03-31
 */
public interface UserLableMapper extends BaseMapper<UserLable> {
    /**
     * 获取用户印象
     * @Author Shane
     * @Date 2020/3/31 15:36
     * @param
     * @return
     */
    List<Map<String, Object>> getUserLables(@Param("userId") Integer userId);

    /**
     * 删除用户标签
     * @Author Shane
     * @Date 2020/4/1 16:06
     * @param
     * @return
     */
    int deleteByUserId(@Param("userId") Integer userId);

}